//
//  HomeCollecLayout.m
//  NormalFramework
//
//  Created by beisheng03 on 2018/3/14.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "HomeCollecLayout.h"

@implementation HomeCollecLayout
- (void)prepareLayout{
    [super prepareLayout];
    
    CGFloat w = (KScreenW - 2) * 0.5;
    CGFloat h = w * 0.6666666;

    self.itemSize = CGSizeMake((KScreenW - 2) * 0.5, h + 90);
    self.minimumLineSpacing = 2;
    self.minimumInteritemSpacing = 1.8;
    self.collectionView.showsVerticalScrollIndicator = false;
    self.collectionView.showsHorizontalScrollIndicator = false;
    self.collectionView.backgroundColor = viewBgGrey;
    //    self.collectionView.scrollEnabled = NO;
    //    self.collectionView.contentInset = UIEdgeInsetsMake(0, 10, 0, 10);
    
    
}
@end
